import { Http } from "../myHttp.jsx";
//楼盘点评  /floorComment/getAll
const getCommentData=()=>{
    return Http('/floorComment/getAll','get').then((res)=>{ return res})
}
// 查询数据  /floorComment/search
const searchCommentData=(params)=>{
    return Http('/floorComment/search','get',params).then((res)=>{ return res})
}
// 删除数据 /floorComment/delete
const deleteCommentData=(params)=>{
    return Http('/floorComment/delete','get',params).then((res)=>{ return res})
}
// 审核 /floorComment/change
const changeCommentData=(params)=>{
    return Http('/floorComment/change','get',params).then((res)=>{ return res})
}


//经纪人点评
//获取
const getAgentData=()=>{
    return Http('/brokerComment/getAll','get').then((res)=>{ return res})
}
//查询
const searchMsg=(params)=>{
    return Http('/brokerComment/search','get',params).then((res)=>{return res})
}
//删除
const deleteMsg=(params)=>{
    return Http('/brokerComment/delete','get',params).then((res)=>{return res})
}
//审核
const examine=(params)=>{
    return Http('/brokerComment/change','get',params).then((res)=>{return res})
}

//楼盘解读
//数据初始化
const getFloorData=()=>{
    return Http('/floorUnscramble/getAll','get').then((res)=>{return res})
}
//查询数据 /floorUnscramble/search
const searchFloorData=(params)=>{
    return Http('/floorUnscramble/search','get',params).then((res)=>{return res})
}
//删除数据 /floorUnscramble/delete
const deleteFloorData=(params)=>{
    return Http('/floorUnscramble/delete','get',params).then((res)=>{return res})
}
//审核 /floorUnscramble/change
const changeFloorXamine=(params)=>{
    return Http('/floorUnscramble/change','get',params).then((res)=>{return res})
}

//服务案例  
//数据初始化 /serviceCases/getAll
const getServiceData=()=>{
    return Http('/serviceCases/getAll','get').then((res)=>{return res})
}
//查询数据 /serviceCases/search
const searchServiceData=(params)=>{
    return Http('/serviceCases/search','get',params).then((res)=>{return res})
}
//删除数据  /serviceCases/delete
const deleteServiceData=(params)=>{
    return Http('/serviceCases/delete','get',params).then((res)=>{return res})
}
//审核  /serviceCases/change
const changeServiceData=(params)=>{
    return Http('/serviceCases/change','get',params).then((res)=>{return res})
}

//城市区域
//数据初始化 /cityArea/getAll
const getCityData=()=>{
    return Http('/cityArea/getAll','get').then((res)=>{return res})
}
//查询数据 /cityArea/search
const searchCityData=(params)=>{
    return Http('/cityArea/search','get',params).then((res)=>{return res})
}
//删除数据  /cityArea/delete
const deleteCityData=(params)=>{
    return Http('/cityArea/delete','get',params).then((res)=>{return res})
}
//添加城市 post  /cityArea/add
const addCityData=(params)=>{
    return Http('/cityArea/add','post',params).then((res)=>{return res})
}
//编辑城市 post   /cityArea/edit
const editCityData=(params)=>{
    return Http('/cityArea/edit','post',params).then((res)=>{return res})
}

//编辑区域
//数据初始化 /cityArea/getAllArea
const getAreaData=(params)=>{
    return Http('/cityArea/getAllArea','get',params).then((res)=>{return res})
}
//查询数据 /cityArea/areaSearch
const searchAreaData=(params)=>{
    return Http('/cityArea/areaSearch','get',params).then((res)=>{return res})
}
//添加数据 /cityArea/areaAdd
const addAreaData=(params)=>{
    return Http('/cityArea/areaAdd','get',params).then((res)=>{return res})
}
//删除数据 /cityArea/areaDelete
const deleteAreaData=(params)=>{
    return Http('/cityArea/areaDelete','get',params).then((res)=>{return res})
}
//添加数据 /cityArea/areaEdit
const editAreaData=(params)=>{
    return Http('/cityArea/areaEdit','get',params).then((res)=>{return res})
}


//编辑商圈
//数据初始化 /cityArea/business
const getBusinessData=(params)=>{
    return Http('/cityArea/business','get',params).then((res)=>{return res})
}
//查询数据  /cityArea/businessSearch
const searchBusinessData=(params)=>{
    return Http('/cityArea/businessSearch','get',params).then((res)=>{return res})
}
//添加数据 /cityArea/businessAdd
const addBusinessData=(params)=>{
    return Http('/cityArea/businessAdd','get',params).then((res)=>{return res})
}
//编辑数据 /cityArea/businessEdit
const editBusinessData=(params)=>{
    return Http('/cityArea/businessEdit','get',params).then((res)=>{return res})
}
//删除数据 /cityArea/businessDelete
const deleteBusinessData=(params)=>{
    return Http('/cityArea/businessDelete','get',params).then((res)=>{return res})
}

//轨道交通
//数据初始化 /railTransit/getAll
const getRailData=()=>{
    return Http('/railTransit/getAll','get').then((res)=>{return res})
}
//查询数据 /railTransit/search
const searchRailData=(params)=>{
    return Http('/railTransit/search','get',params).then((res)=>{return res})
}
//添加数据 post  /railTransit/add
const addRailData=(params)=>{
    return Http('/railTransit/add','post',params).then((res)=>{return res})
}
//编辑数据 post  /railTransit/edit
const editRailData=(params)=>{
    return Http('/railTransit/edit','post',params).then((res)=>{return res})
}
//删除数据  /railTransit/delete
const deleteRailData=(params)=>{
    return Http('/railTransit/delete','get',params).then((res)=>{return res})
}

//编辑站点 
//数据初始化 /railTransit/getAllSite
const getSiteData=(params)=>{
    return Http('/railTransit/getAllSite','get',params).then((res)=>{return res})
}
//数据查询  /railTransit/siteSearch
const searchSiteData=(params)=>{
    return Http('/railTransit/siteSearch','get',params).then((res)=>{return res})
}
//添加数据 /railTransit/siteAdd
const addSiteData=(params)=>{
    return Http('/railTransit/siteAdd','get',params).then((res)=>{return res})
}
//删除数据  /railTransit/siteDelete
const deleteSiteData=(params)=>{
    return Http('/railTransit/siteDelete','get',params).then((res)=>{return res})
}
//编辑站点 post  /railTransit/siteEdit
const editSiteData=(params)=>{
    return Http('/railTransit/siteEdit','post',params).then((res)=>{return res})
}

//项目特色
//数据初始化 /projectFeatures/getAll
const getProjectData=()=>{
    return Http('/projectFeatures/getAll','get',).then((res)=>{return res})
}
//查询数据 /projectFeatures/search
const searchProjectData=(params)=>{
    return Http('/projectFeatures/search','get',params).then((res)=>{return res})
}
//添加数据 post /projectFeatures/add
const addProjectData=(params)=>{
    return Http('/projectFeatures/add','post',params).then((res)=>{return res})
}
//编辑数据 post /projectFeatures/edit
const editProjectData=(params)=>{
    return Http('/projectFeatures/edit','post',params).then((res)=>{return res})
}
//删除数据 /projectFeatures/delete
const deleteProjectData=(params)=>{
    return Http('/projectFeatures/delete','get',params).then((res)=>{return res})
}



export {
    //楼盘点评
    getCommentData,searchCommentData,deleteCommentData,changeCommentData,
    //经纪人点评
    getAgentData,searchMsg,deleteMsg,examine,
    //楼盘解读
    getFloorData,searchFloorData,deleteFloorData,changeFloorXamine,
    //服务案例
    getServiceData,searchServiceData,deleteServiceData,changeServiceData,
    //城市区域
    getCityData,searchCityData,deleteCityData,addCityData,editCityData,
    //编辑区域
    getAreaData,searchAreaData,addAreaData,deleteAreaData,editAreaData,
    //编辑商圈
    getBusinessData,searchBusinessData,addBusinessData,editBusinessData,deleteBusinessData,
    //轨道交通
    getRailData,searchRailData,addRailData,editRailData,deleteRailData,
    //编辑站点 
    getSiteData,searchSiteData,addSiteData,deleteSiteData,editSiteData,
    //项目特色
    getProjectData,searchProjectData,addProjectData,editProjectData,deleteProjectData
    //
}